			


import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class Tester {
    
    public static void main(String []args)
    {
        
        MainFrame j = new MainFrame();
       
        j.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
        j.getContentPane();

        j.pack();
        j.setVisible(true);
        
        int location = 0;
        while(true)
        {
        j.repaint();
        LoginGUI q = j.getLogin();
        while (location == 0)
        {
            location = q.getLoc();
                        
            
            
            
        }
        
        if (location !=0)
        {
        
        j.changeScreen();
        j.repaint();
        j.reset();
        }
        }
        
        
        
        
    }
   

}
